import http from '@/services/index.js'

export const weChatLogin = (data, config) => http.post('/promotion/user/login/weChat', data, config)

export const getUserinfo = (data) => http.post('/promotion/user/info', data)

export const getInvitationQRCode = (data) => http.post('/promotion/pullnewUser/getInvitationCode', data)

export const getAccountBalanceInfo = (data) => http.post('/promotion/account/accountBalanceInfo', data)


export const getHasPartTime = (data) => http.post('/promotion/partTime/isEnabled', data)

export const getPartTimePage = (data, config) => http.post('/promotion/partTime/page', data, config)

export const getListAvailablePositions = (data) => http.post('/promotion/partTime/listAvailablePositions', data)

export const getListAvailableWorkingTimes = (data) => http.post('/promotion/partTime/listAvailableWorkingTimes', data)

export const getListAvailableStoreInfos = (data) => http.post('/promotion/partTime/listAvailableStoreInfos', data)
// 保存-内部员工验证
export const savePromotionPartTimeInternalUser = (data) => http.post('/promotion/partTime/savePromotionPartTimeInternalUser',
  data)

// 查询-我的应聘记录详情
export const getPartTimeUserDetail = (data) => http.post('/promotion/partTimeUser/detail', data)
// 查询灵活用工岗位明细
export const getPartTimeDetail = (data) => http.post('/promotion/partTime/detail', data)
// 关注岗位
export const setFollow = (data) => http.post('/promotion/partTime/follow', data)
// 查询应聘用户岗位出勤记录(分页)
export const getPartTimeUserLog = (data) => http.post('/promotion/partTimeUserLog/page', data)
// 查询我的应聘记录(分页)
export const getPartTimeUserList = (data) => http.post('/promotion/partTimeUser/page', data)
// 修改-取消应聘用户
export const dismissPartTimeUser = (data, config) => http.post('/promotion/partTimeUser/dismiss', data, config)

